package top.lingkang.potato.controller;

import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.Label;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import top.lingkang.potato.StateManager;

import java.net.URL;
import java.util.ResourceBundle;

public class HomeController implements Initializable {

    @FXML
    private Label nickname,autograph;
    @FXML
    private ImageView avatar;

    @Override
    public void initialize(URL url, ResourceBundle resourceBundle) {
        // 初始化基本信息
        avatar.setImage(new Image(StateManager.userInfoVo.getAvatar()));
        nickname.setText(StateManager.userInfoVo.getNickname());
        autograph.setText(StateManager.userInfoVo.getAutograph());

    }
}
